package com.jsh.ex;

import com.jsh.ex.common.rss.RSSFeedViewer;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewResolverRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;


@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {
    @Override
    public void configureViewResolvers(ViewResolverRegistry registry) {
        //rss视图解析器注册
        registry.enableContentNegotiation(new RSSFeedViewer());
    }
}